<article class="<?php echo has_post_thumbnail() && ! is_single() ? 'hasCover cf' : ''; ?>">
	<?php
	// if ( is_sticky() && is_home() ) :
	// 	echo twentyseventeen_get_svg( array( 'icon' => 'thumb-tack' ) );
	// endif;
	?>
	<?php if ( has_post_thumbnail() && ! is_single() ) : ?>
		<div class="cover">
			<a href="<?php the_permalink(); ?>">
				<?php the_post_thumbnail(); ?>
			</a>
		</div>
	<?php endif; ?>
	<header class="entry-header">
		<?php
		riant_edit_link();

		if ( is_single() ) {
			the_title( '<h1 class="entry-title">', '</h1>' );
			post_metas();
		} else {
			the_title( '<h3 class="entry-title"><span class="cate">'. get_the_category_list(' ') .'</span><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h3>' );
		}
		?>
	</header>

	<div class="entry-content entry">
		<?php
		if (!is_single() && $post->post_excerpt) :
			the_excerpt();
		else :
			the_content( '继续阅读...' );
		endif;

		wp_link_pages( array(
			'before'      => '<div class="page-links">页码：',
			'after'       => '</div>',
			'link_before' => '<span class="page-number">',
			'link_after'  => '</span>',
		) );
		?>
	</div><!-- .entry-content -->
	<div class="entry-footer">
	<?php if ( is_single() ) { ?>
		<span class="word-count">全文共 <?php echo mb_strlen(preg_replace('/\s/','',html_entity_decode(strip_tags($post->post_content))),'UTF-8'); ?> 字</span>
		<span class="post-copyright">本文版权属于<a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>"><?php echo get_the_author(); ?></a>，如需转载或使用请注明作者和出处。</span>
	<?php } else { ?>
		<span class="author">
			<a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>"><?php echo get_the_author(); ?></a>
		</span>
		<?php echo riant_time_link(); ?>
	<?php } ?>
	</div>

</article><!-- #post-## -->
